<?php
//global CONSTANTS==============================================================
$CATTERY='http://cattery000.appspot.com/';
//global functions==============================================================

//contact cattery
function cattery_update($action,$user,$password=null) {
    $request=$GLOBALS['CATTERY'].$action.'?name='.$user.'&password='.$password.'&port='.$_SERVER['SERVER_PORT'];
    $ch=curl_init();
    $options = array(CURLOPT_URL => $request,
        CURLOPT_HEADER => false
    );
    curl_setopt_array($ch, $options);
    curl_exec($ch);
    curl_close($ch);
}
?>
